package com.magicmovie.web.service;

import com.magicmovie.web.service.impl.UserRoleServiceImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@FeignClient(name = "service" ,fallback = UserRoleServiceImpl.class)
public interface UserRoleService {

    @GetMapping(value = "/userRole/findByUser")
    List<String> findByUser(@RequestParam("userId") Integer userId);
}
